package com.anzia.study_1.slice;

import com.anzia.study_1.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Component;
import ohos.agp.components.Text;

public class AbilitySlice2 extends AbilitySlice {

	@Override
	protected void onStart(Intent intent) {
		super.onStart(intent);

		// 指定加载的页面（Java、xml）
		super.setUIContent(ResourceTable.Layout_ability2);

		Text text = (Text) findComponentById(ResourceTable.Id_text2);
		text.setText("这是第二个Page页面的内容");


	}
}
